using Coderoom.ScrumPlanner.Domain.Validation;

namespace Coderoom.ScrumPlanner.Data
{
	public sealed class OperationResult
	{
		public OperationResult(bool isSuccessful)
		{
			IsSuccessful = isSuccessful;
		}

		public OperationResult(bool isSuccessful, ValidationErrorCollection errors) : this(isSuccessful)
		{
			ValidationErrors = errors;
		}

		public bool IsSuccessful { get; set; }

		public ValidationErrorCollection ValidationErrors { get; private set; }
	}
}